using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace webapp4U.UI
{
    public partial class Logon_Redirect : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // kiem tra va Redirect toi trang can thiet
            if (Page.User.IsInRole(Globals.Settings.AppRoles.KhachHang))
                Response.Redirect(Globals.ApplicationPath);
            else if (Page.User.IsInRole(Globals.Settings.AppRoles.Admin))
                Response.Redirect(Globals.ApplicationPath + "WebMaster/Contacts/Contact.aspx");
                        
        }
    }
}